Add minitest test suite and CI workflow - #5
Open
Copilot wants to merge 1 commit into
Open
Conversation
- Add test/test_helper.rb with simplecov + minitest/test-unit setup - Add test/faker/test_version.rb covering Faker::VERSION - Add Rakefile with a test task (rake test) as the default task - Add .github/workflows/ci.yml to run tests on push/PR across Ruby 3.2-3.4 - Add .gitignore to exclude coverage/ and bundler artifacts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This repo had no tests at all (
lib/faker/only containsversion.rb, notest/,spec/, or CI). This PR adds a minimal but real test setup so future changes have something to build on.Changes
test/test_helper.rb: sets up SimpleCov + minitest/test-unit, matching upstream faker-ruby conventionstest/faker/test_version.rb: tests forFaker::VERSION(defined, is a String, matches semver format, and matches the gemspec version)Rakefile: adds atestrake task (default task) that runs alltest/**/test_*.rbfiles.github/workflows/ci.yml: runsbundle exec rake teston push/PR to main across Ruby 3.2, 3.3, 3.4.gitignore: excludescoverage/and bundler artifactsVerification
Also ran
bundle exec rubocop test/ Rakefilewith no offenses.